#include "cgeradorcaptcha.h"

CGeradorCaptcha::CGeradorCaptcha() :
    QDeclarativeImageProvider(QDeclarativeImageProvider::Image)
{
}

QImage CGeradorCaptcha::requestImage(const QString &id, QSize *size, const QSize &requestedSize)
{
    QImage img;
    img.loadFromData(_img);
    size->setWidth(img.width());
    size->setHeight(img.height());
    return img;
}
